package com.aaa.order.openfeign;

import com.aaa.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：ludi
 * @date ：Created in 2022/11/19 15:13
 * @description：openfeign接口
 * @modified By：
 * @version:
 */
@FeignClient(value = "shop-product")
public interface ProductOpenFeign {
    @GetMapping("product/selectById/{pid}")
    public Product selectById(@PathVariable Long pid);
}